package com.example.j202411.Model;

import java.io.Serializable;
import java.util.List;

/**
 * 接口1实体类
 */
public class CatalogEntity {

   private String resultcode;
   private String reason;
   private List<ResultDTO> result;
   private int error_code;

   public String getResultcode() {
      return resultcode;
   }

   public void setResultcode(String resultcode) {
      this.resultcode = resultcode;
   }

   public String getReason() {
      return reason;
   }

   public void setReason(String reason) {
      this.reason = reason;
   }

   public List<ResultDTO> getResult() {
      return result;
   }

   public void setResult(List<ResultDTO> result) {
      this.result = result;
   }

   public int getError_code() {
      return error_code;
   }

   public void setError_code(int error_code) {
      this.error_code = error_code;
   }

   public static class ResultDTO implements Serializable {
      private String id;
      private String catalog;

      public String getId() {
         return id;
      }

      public void setId(String id) {
         this.id = id;
      }

      public String getCatalog() {
         return catalog;
      }

      public void setCatalog(String catalog) {
         this.catalog = catalog;
      }

      @Override
      public String toString() {
         return "ResultDTO{" +
                 "id='" + id + '\'' +
                 ", catalog='" + catalog + '\'' +
                 '}';
      }
   }

   @Override
   public String toString() {
      return "CatalogEntity{" +
              "resultcode='" + resultcode + '\'' +
              ", reason='" + reason + '\'' +
              ", result=" + result +
              ", error_code=" + error_code +
              '}';
   }
}
